package dingding;

import org.junit.jupiter.api.Test;
import util.StringUtil;

public class 语法 {


    @Test
    public void test1(){

        String str = "runooooooob";
        System.out.println(StringUtil.matcheOne(str,"runoo*b"));
    }


    @Test
    public void test2(){

        String str1 = "0";
        String str2 = "1";
        String str3 = "123";
        String str4 = "1234";
        System.out.println(StringUtil.matcheOne(str1,"[1-9][0-9]*"));
        System.out.println(StringUtil.matcheOne(str2,"[1-9][0-9]*"));
        System.out.println(StringUtil.matcheOne(str3,"[1-9][0-9]*"));
        System.out.println(StringUtil.matcheOne(str4,"[1-9][0-9]*"));
    }
}
